import { defineStore } from "pinia";
import { getOrderDetail } from "@/api/goods";

export const useOrder = defineStore("order", {
    state: () => ({
        orderDetails: null,
        goodsDetails: null,
        reloadOrderDetails: false,
    }),
    actions: {
        setOrderDetails(details) {
            this.orderDetails = details;
        },
        setGoodsDetails(details) {
            this.goodsDetails = details;
        },
        setReloadOrderDetails(reload) {
            this.reloadOrderDetails = reload;
        },
    },
    getters: {},
});
